package com.hanqian.kepler.core.dao.primary.core;

import com.hanqian.kepler.core.entity.primary.core.Target;
import com.hanqian.kepler.flow.base.dao.BaseFlowDao;
import io.lettuce.core.dynamic.annotation.Param;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

/**
 * newFile
 * ============================================================================
 * author : dzw
 * createDate:  2020/12/21 。
 * ============================================================================
 */
public interface TargetDao extends BaseFlowDao<Target> {

	/**
	 * 获取所有指标标签
	 */
	@Query(value = "select targetLabel from kepler_target where state='Enable' and processState='Finished'", nativeQuery = true)
	List<String> findAllTargetLabel();

}
